package com.base.service.COUPON.impl;

import com.base.mapper.couponmapper.CouponOrderNewSubMapper;
import com.base.po.coupon_new.CouponOrderNewSub;
import com.base.po.coupon_new.CouponOrderNewSubExample;
import com.base.service.COUPON.CouponOrderNewSubService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("CouponOrderNewSubService")
public class CouponOrderNewSubServiceImpl implements CouponOrderNewSubService {
    @Autowired
    CouponOrderNewSubMapper couponOrderNewSubMapper;

    @Override
    public int countByExample(CouponOrderNewSubExample example) {
        return couponOrderNewSubMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(CouponOrderNewSubExample example) {
        return couponOrderNewSubMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return couponOrderNewSubMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(CouponOrderNewSub record) {
        return couponOrderNewSubMapper.insert(record);
    }

    @Override
    public int insertSelective(CouponOrderNewSub record) {
        return couponOrderNewSubMapper.insertSelective(record);
    }

    @Override
    public List<CouponOrderNewSub> selectByExample(CouponOrderNewSubExample example) {
        return couponOrderNewSubMapper.selectByExample(example);
    }

    @Override
    public CouponOrderNewSub selectByPrimaryKey(Integer id) {
        return couponOrderNewSubMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByExampleSelective(CouponOrderNewSub record, CouponOrderNewSubExample example) {
        return couponOrderNewSubMapper.updateByExampleSelective(record, example);
    }

    @Override
    public int updateByExample(CouponOrderNewSub record, CouponOrderNewSubExample example) {
        return couponOrderNewSubMapper.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(CouponOrderNewSub record) {
        return couponOrderNewSubMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(CouponOrderNewSub record) {
        return couponOrderNewSubMapper.updateByPrimaryKey(record);
    }

    @Override
    public CouponOrderNewSub selectByOrderNo(String orderno) {
        return couponOrderNewSubMapper.selectByOrderNo( orderno);
    }

    @Override
    public List<CouponOrderNewSub> selectByBatchNo(String batchNo) {
        return couponOrderNewSubMapper.selectByBatchNo( batchNo);
    }
}
